<%@ page language="java" contentType="text/html; charset=utf-8"
 pageEncoding="utf-8"%>
<%@page import="com.AAL.Model.TypeOfAuto"%>
<%@page import="java.util.List"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>


<h3 style="background-color: #8AC0E9; font-size:17px; width: 95%; padding: 10px ;color: white;">Quản lý danh mục dòng xe</h3>
<s:url id="TypeOfAutos_preAddNewTypeOfAutos" value="/TypeOfAutos_preAddNewTypeOfAutos" />
<sj:a title="Quan ly danh muc san pham"
	id="lnkTypeOfAutos_preAddNewTypeOfAutos" href="%{TypeOfAutos_preAddNewTypeOfAutos}"
	targets="container" button="true" buttonIcon="new" cssStyle="float:right; margin-right:35px;">
	Thêm mới 
</sj:a>

<br />
<p style="clear: both;"></p>
	<div style="margin: 10px;"><s:form id="form" method="post"
	action="#" theme="simple" cssClass="yform">
	<fieldset style="width: 95%;"><legend
		style="margin-left: 10px; font-weight: bold;">Tìm kiếm dòng xe</legend>
	<div class="type-text">
	<ul class="form">
		<li class="left">Mã dòng xe:</li>
		<li class="right"><s:textfield cssClass="smallInput wide"
			name="typeOfAuto.typeOfAutoID" /></li>
		<li class="clr"></li>
		<li class="left">Tên dòng xe :</li>
		<li class="right"><s:textfield cssClass="smallInput wide"
			name="typeOfAuto.typeOfAutoName" /></li>
		<li class="clr"></li>
		<li class="left">&nbsp;</li>
		  <li class="right"><s:url id="searchProduct" value="/#" /> <sj:submit
           title="Tìm kiếm" id="subSearchProduct"
           href="%{searchProduct}" button="true" value="Tìm kiếm"></sj:submit>
        </li>
		<li class="clr"></li>
	</ul>

	</div>

	</fieldset>
</s:form></div>

<div style="margin: 10px;">
	<fieldset style="width: 95%;"><legend
		style="margin-left: 10px; font-weight: bold;">Danh sách dòng xe</legend>
	<div class="type-text">

<table width="99%" cellpadding="0" cellspacing="0" id="box-table-a"
	summary="Employee Pay Sheet">
	<thead>
		<tr>
			<th width="20%" scope="col">Mã dòng xe</th>
			<th width="30%" scope="col">Mô tả</th>
			<th width="20%" scope="col">Tên dòng xe</th>			
			<th width="10%" scope="col"></th>
			<th width="10%" scope="col"></th>
			<th width="10%" scope="col"></th>
		</tr>
	</thead>
	<tbody>
		<s:iterator value="listTypeOfAuto">
		<tr>
			<td width="20%" scope="col"><s:property value="typeOfAutoID" /></td>
			<td width="30%" scope="col"><s:property value="description" /></td>
			<td width="20%" scope="col"><s:property value="typeOfAutoName" /></td>
		    <td width="10%" scope="col">  	    
		    <s:url id="TypeOfAutos_getTypeOfAutos"
            value="/TypeOfAutos_getTypeOfAutos?id=%{typeOfAutoID}" /> 
            <sj:a title="Thông tin chi tiết" 
            href="%{TypeOfAutos_getTypeOfAutos}" targets="container" class="link"> Xem chi tiết
            </sj:a>
			</td>	
			<td width="10%" scope="col">
			<s:url id="TypeOfAutos_preEditTypeOfAutos"
            value="/TypeOfAutos_preEditTypeOfAutos?id=%{typeOfAutoID}" /> 
            <sj:a title="Sua" 
            href="%{TypeOfAutos_preEditTypeOfAutos}" targets="container" class="link"> Sửa
            </sj:a>
			</td>
			<td width="10%" scope="col">
			<s:url id="TypeOfAutos_deleteTypeOfAutos"
            value="/TypeOfAutos_deleteTypeOfAutos?id=%{typeOfAutoID}" /> 
            <sj:a title="Xoa" 
            href="%{TypeOfAutos_deleteTypeOfAutos}" targets="container" class="link"> Xóa
            </sj:a>
			</td>
		</tr>

		
		<tr></tr>
		<tr class="footer">
			
		</tr>
		   </s:iterator>
	</tbody>
</table>
</div>

	</fieldset>
</div>
